/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLL;

import DAL.DALUser;
import DTO.DTOUser;

/**
 *
 * @author Pham
 */
public class BLLUser {
    DALUser dalUser;
    
    public BLLUser()
    {
        dalUser = new DALUser();
    }
    
    //method check login
    public DTOUser checkLogin(String username, String password)
    {
        return dalUser.checkLogin(username, password);
    }
    
    public boolean changePassword(String username, String oldPass, String newPass)
    {
        return dalUser.changePassword(username, oldPass, newPass);
    }
}
